import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'


Vue.use(VueRouter)

const routes = [
  {path: '/', name: '', component: HomeView},
  {path: '/element', name: 'element', component: () => import('../views/Element.vue')},
  {path: '/login', name: 'login', component: () => import('../views/login.vue')},
  {path: '/register', name: 'Register', component: () => import('../views/register.vue')},
  {path: '/login2', name: 'login2', component: () => import('../views/login2.vue')},

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
